package models

import (
	"gorm.io/gorm"
	"time"
)

type Chats struct {
	Id        uint           `gorm:"column:id;type:bigint(20);primaryKey;not null;" json:"id"`
	Own       uint           `gorm:"column:own;type:bigint(20);not null;" json:"own"`
	Context   string         `gorm:"column:context;type:varchar(200);not null;" json:"context"`
	Other     uint           `gorm:"column:other;type:bigint(20);not null;" json:"other"`
	Status    uint           `gorm:"column:status;type:bigint(20);comment:1同意 2 ;not null;" json:"status"` // 1同意 2
	CreatedAt time.Time      `gorm:"column:created_at;type:datetime(3);not null;default:CURRENT_TIMESTAMP(3);" json:"created_at"`
	DeletedAt gorm.DeletedAt `gorm:"column:deleted_at;type:datetime(3);default:NULL;" json:"deleted_at"`
}
